package MaxInterface;

import javax.swing.JDialog;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.GridBagLayout;
import java.awt.FlowLayout;
import java.awt.Rectangle;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import javax.swing.SwingConstants;
import java.awt.Font;
import java.awt.event.KeyEvent;
import java.awt.ComponentOrientation;
import javax.swing.JTextField;
import java.awt.CardLayout;
import java.awt.Insets;

public class Dashboard_Signal {

        private JDialog jDialog = null;  //  @jve:decl-index=0:visual-constraint="270,30"
        private JPanel jPanel1 = null;
        private JPanel jPanel2 = null;
        private JPanel jPanel21 = null;
        private JPanel jPanel211 = null;
        private JPanel jPanel212 = null;
        private JPanel jPanel213 = null;
        private JLabel jLabel2 = null;
        private JLabel jLabel4 = null;
        private JLabel jLabel3 = null;
        private JLabel jLabel5 = null;
        private JLabel jLabel6 = null;
        private JPanel jPanel3 = null;
        private JTextField jTextField1 = null;
        private JTextField jTextField2 = null;
        private JTextField jTextField3 = null;
        private JTextField jTextField4 = null;
        private JPanel jPanel4 = null;
        private JTextField jTextField5 = null;
        private JTextField jTextField6 = null;
        private JTextField jTextField7 = null;
        private JTextField jTextField8 = null;
        private JTextField jTextField9 = null;
        private JPanel jPanel5 = null;
        private JTextField jTextField10 = null;
        private JTextField jTextField11 = null;
        private JTextField jTextField12 = null;
        private JPanel jPanel6 = null;
        private JTextField jTextField13 = null;
        private JTextField jTextField14 = null;
        private JPanel jPanel7 = null;
        private JTextField jTextField = null;
        private JPanel jPanel = null;
        private JLabel jLabel7 = null;
        private JLabel jLabel8 = null;
        
        public Dashboard_Signal(){
        	getJDialog();
        }
        
        /**
         * This method initializes jDialog      
         *      
         * @return javax.swing.JDialog  
         */
        private JDialog getJDialog() {
                if (jDialog == null) {
                        jDialog = new JDialog();
                        jDialog.setSize(new Dimension(281, 170));
                        jDialog.setResizable(false);
                        jDialog.setContentPane(getJPanel1());
                        jDialog.setTitle("GBPUSD - Buy Signal");
                        jDialog.setVisible(true);
                }
                return jDialog;
        }

        /**
         * This method initializes jPanel       
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel() {
                if (jPanel == null) {
                }
                return jPanel;
        }

        /**
         * This method initializes jPanel1      
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel1() {
                if (jPanel1 == null) {
                        GridLayout gridLayout1 = new GridLayout();
                        gridLayout1.setRows(6);
                        gridLayout1.setColumns(1);
                        jPanel1 = new JPanel();
                        jPanel1.setLayout(gridLayout1);
                        jPanel1.add(getJPanel8(), null);
                        jPanel1.add(getJPanel212(), null);
                        jPanel1.add(getJPanel211(), null);
                        jPanel1.add(getJPanel2(), null);
                        jPanel1.add(getJPanel21(), null);
                        jPanel1.add(getJPanel213(), null);
                }
                return jPanel1;
        }

        /**
         * This method initializes jPanel2      
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel2() {
                if (jPanel2 == null) {
                        jLabel3 = new JLabel();
                        jLabel3.setText("Fan order");
                        jLabel3.setFont(new Font("Dialog", Font.PLAIN, 12));
                        jPanel2 = new JPanel();
                        jPanel2.setLayout(new BorderLayout());
                        jPanel2.add(jLabel3, BorderLayout.WEST);
                        jPanel2.add(getJPanel4(), BorderLayout.EAST);
                }
                return jPanel2;
        }

        /**
         * This method initializes jPanel21     
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel21() {
                if (jPanel21 == null) {
                        jLabel5 = new JLabel();
                        jLabel5.setText("Envelopes");
                        jLabel5.setFont(new Font("Dialog", Font.PLAIN, 12));
                        jPanel21 = new JPanel();
                        jPanel21.setLayout(new BorderLayout());
                        jPanel21.add(jLabel5, BorderLayout.CENTER);
                        jPanel21.add(getJPanel5(), BorderLayout.EAST);
                }
                return jPanel21;
        }

        /**
         * This method initializes jPanel211    
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel211() {
                if (jPanel211 == null) {
                        jLabel4 = new JLabel();
                        jLabel4.setText("Fan distance");
                        jLabel4.setFont(new Font("Dialog", Font.PLAIN, 12));
                        jLabel4.setDisplayedMnemonic(KeyEvent.VK_UNDEFINED);
                        jLabel4.setHorizontalTextPosition(SwingConstants.TRAILING);
                        jPanel211 = new JPanel();
                        jPanel211.setLayout(new BorderLayout());
                        jPanel211.add(jLabel4, BorderLayout.CENTER);
                        jPanel211.add(getJPanel3(), BorderLayout.EAST);
                }
                return jPanel211;
        }

        /**
         * This method initializes jPanel212    
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel212() {
                if (jPanel212 == null) {
                        jLabel2 = new JLabel();
                        jLabel2.setText("Fan");
                        jLabel2.setFont(new Font("Dialog", Font.PLAIN, 12));
                        jLabel2.setHorizontalAlignment(SwingConstants.CENTER);
                        jPanel212 = new JPanel();
                        jPanel212.setLayout(new BorderLayout());
                        jPanel212.add(jLabel2, BorderLayout.WEST);
                        jPanel212.add(getJPanel7(), BorderLayout.EAST);
                }
                return jPanel212;
        }

        /**
         * This method initializes jPanel213    
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel213() {
                if (jPanel213 == null) {
                        jLabel6 = new JLabel();
                        jLabel6.setText("WPR MA");
                        jLabel6.setFont(new Font("Dialog", Font.PLAIN, 12));
                        jPanel213 = new JPanel();
                        jPanel213.setLayout(new BorderLayout());
                        jPanel213.add(jLabel6, BorderLayout.CENTER);
                        jPanel213.add(getJPanel6(), BorderLayout.EAST);
                }
                return jPanel213;
        }

        /**
         * This method initializes jPanel3      
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel3() {
                if (jPanel3 == null) {
                        FlowLayout flowLayout = new FlowLayout();
                        flowLayout.setHgap(5);
                        flowLayout.setAlignment(java.awt.FlowLayout.CENTER);
                        flowLayout.setVgap(0);
                        jPanel3 = new JPanel();
                        jPanel3.setLayout(flowLayout);
                        jPanel3.setPreferredSize(new Dimension(200, 0));
                        jPanel3.add(getJTextField1(), null);
                        jPanel3.add(getJTextField2(), null);
                        jPanel3.add(getJTextField3(), null);
                        jPanel3.add(getJTextField4(), null);
                }
                return jPanel3;
        }

        /**
         * This method initializes jTextField1  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField1() {
                if (jTextField1 == null) {
                        jTextField1 = new JTextField();
                        jTextField1.setText("10");
                        jTextField1.setPreferredSize(new Dimension(25, 20));
                        jTextField1.setHorizontalAlignment(JTextField.CENTER);
                        jTextField1.setEnabled(false);
                        jTextField1.setName("jTextField1");
                }
                return jTextField1;
        }

        /**
         * This method initializes jTextField2  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField2() {
                if (jTextField2 == null) {
                        jTextField2 = new JTextField();
                        jTextField2.setName("jTextField2");
                        jTextField2.setPreferredSize(new Dimension(25, 20));
                        jTextField2.setHorizontalAlignment(JTextField.CENTER);
                        jTextField2.setEnabled(false);
                        jTextField2.setText("15");
                }
                return jTextField2;
        }

        /**
         * This method initializes jTextField3  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField3() {
                if (jTextField3 == null) {
                        jTextField3 = new JTextField();
                        jTextField3.setText("8");
                        jTextField3.setHorizontalAlignment(JTextField.CENTER);
                        jTextField3.setEnabled(false);
                        jTextField3.setPreferredSize(new Dimension(25, 20));
                }
                return jTextField3;
        }

        /**
         * This method initializes jTextField4  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField4() {
                if (jTextField4 == null) {
                        jTextField4 = new JTextField();
                        jTextField4.setText("70");
                        jTextField4.setHorizontalAlignment(JTextField.CENTER);
                        jTextField4.setEnabled(false);
                        jTextField4.setPreferredSize(new Dimension(25, 20));
                }
                return jTextField4;
        }

        /**
         * This method initializes jPanel4      
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel4() {
                if (jPanel4 == null) {
                        FlowLayout flowLayout3 = new FlowLayout();
                        flowLayout3.setVgap(0);
                        flowLayout3.setHgap(6);
                        jPanel4 = new JPanel();
                        jPanel4.setLayout(flowLayout3);
                        jPanel4.setPreferredSize(new Dimension(200, 0));
                        jPanel4.add(getJTextField5(), null);
                        jPanel4.add(getJTextField6(), null);
                        jPanel4.add(getJTextField7(), null);
                        jPanel4.add(getJTextField8(), null);
                        jPanel4.add(getJTextField9(), null);
                }
                return jPanel4;
        }

        /**
         * This method initializes jTextField5  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField5() {
                if (jTextField5 == null) {
                        jTextField5 = new JTextField();
                        jTextField5.setText("P");
                        jTextField5.setHorizontalAlignment(JTextField.CENTER);
                        jTextField5.setEnabled(false);
                        jTextField5.setPreferredSize(new Dimension(25, 20));
                }
                return jTextField5;
        }

        /**
         * This method initializes jTextField6  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField6() {
                if (jTextField6 == null) {
                        jTextField6 = new JTextField();
                        jTextField6.setText("21");
                        jTextField6.setHorizontalAlignment(JTextField.CENTER);
                        jTextField6.setEnabled(false);
                        jTextField6.setPreferredSize(new Dimension(25, 20));
                }
                return jTextField6;
        }

        /**
         * This method initializes jTextField7  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField7() {
                if (jTextField7 == null) {
                        jTextField7 = new JTextField();
                        jTextField7.setText("55");
                        jTextField7.setEnabled(false);
                        jTextField7.setHorizontalAlignment(JTextField.CENTER);
                        jTextField7.setPreferredSize(new Dimension(25, 20));
                }
                return jTextField7;
        }

        /**
         * This method initializes jTextField8  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField8() {
                if (jTextField8 == null) {
                        jTextField8 = new JTextField();
                        jTextField8.setText("89");
                        jTextField8.setEnabled(false);
                        jTextField8.setHorizontalAlignment(JTextField.CENTER);
                        jTextField8.setPreferredSize(new Dimension(25, 20));
                }
                return jTextField8;
        }

        /**
         * This method initializes jTextField9  
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField9() {
                if (jTextField9 == null) {
                        jTextField9 = new JTextField();
                        jTextField9.setText("233");
                        jTextField9.setEnabled(false);
                        jTextField9.setHorizontalAlignment(JTextField.CENTER);
                }
                return jTextField9;
        }

        /**
         * This method initializes jPanel5      
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel5() {
                if (jPanel5 == null) {
                        FlowLayout flowLayout1 = new FlowLayout();
                        flowLayout1.setVgap(0);
                        flowLayout1.setHgap(25);
                        jPanel5 = new JPanel();
                        jPanel5.setLayout(flowLayout1);
                        jPanel5.setPreferredSize(new Dimension(200, 0));
                        jPanel5.add(getJTextField10(), null);
                        jPanel5.add(getJTextField11(), null);
                        jPanel5.add(getJTextField12(), null);
                }
                return jPanel5;
        }

        /**
         * This method initializes jTextField10 
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField10() {
                if (jTextField10 == null) {
                        jTextField10 = new JTextField();
                        jTextField10.setText("1");
                        jTextField10.setHorizontalAlignment(JTextField.CENTER);
                        jTextField10.setEnabled(false);
                        jTextField10.setPreferredSize(new Dimension(35, 20));
                }
                return jTextField10;
        }

        /**
         * This method initializes jTextField11 
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField11() {
                if (jTextField11 == null) {
                        jTextField11 = new JTextField();
                        jTextField11.setText("P");
                        jTextField11.setHorizontalAlignment(JTextField.CENTER);
                        jTextField11.setEnabled(false);
                        jTextField11.setPreferredSize(new Dimension(30, 20));
                }
                return jTextField11;
        }

        /**
         * This method initializes jTextField12 
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField12() {
                if (jTextField12 == null) {
                        jTextField12 = new JTextField();
                        jTextField12.setText("2");
                        jTextField12.setHorizontalAlignment(JTextField.CENTER);
                        jTextField12.setEnabled(false);
                        jTextField12.setPreferredSize(new Dimension(35, 20));
                }
                return jTextField12;
        }

        /**
         * This method initializes jPanel6      
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel6() {
                if (jPanel6 == null) {
                        FlowLayout flowLayout4 = new FlowLayout();
                        flowLayout4.setVgap(0);
                        flowLayout4.setHgap(30);
                        jPanel6 = new JPanel();
                        jPanel6.setLayout(flowLayout4);
                        jPanel6.setPreferredSize(new Dimension(200, 0));
                        jPanel6.add(getJTextField13(), null);
                        jPanel6.add(getJTextField14(), null);
                }
                return jPanel6;
        }

        /**
         * This method initializes jTextField13 
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField13() {
                if (jTextField13 == null) {
                        jTextField13 = new JTextField();
                        jTextField13.setText("85");
                        jTextField13.setHorizontalAlignment(JTextField.CENTER);
                        jTextField13.setEnabled(false);
                        jTextField13.setPreferredSize(new Dimension(60, 20));
                }
                return jTextField13;
        }

        /**
         * This method initializes jTextField14 
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField14() {
                if (jTextField14 == null) {
                        jTextField14 = new JTextField();
                        jTextField14.setText("57");
                        jTextField14.setHorizontalAlignment(JTextField.CENTER);
                        jTextField14.setEnabled(false);
                        jTextField14.setPreferredSize(new Dimension(60, 20));
                }
                return jTextField14;
        }

        /**
         * This method initializes jPanel7      
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel7() {
                if (jPanel7 == null) {
                        GridBagConstraints gridBagConstraints = new GridBagConstraints();
                        gridBagConstraints.fill = GridBagConstraints.NONE;
                        gridBagConstraints.gridy = 0;
                        gridBagConstraints.weightx = 1.0;
                        gridBagConstraints.gridx = 0;
                        jPanel7 = new JPanel();
                        jPanel7.setLayout(new GridBagLayout());
                        jPanel7.setPreferredSize(new Dimension(200, 0));
                        jPanel7.add(getJTextField(), gridBagConstraints);
                }
                return jPanel7;
        }

        /**
         * This method initializes jTextField   
         *      
         * @return javax.swing.JTextField       
         */
        private JTextField getJTextField() {
                if (jTextField == null) {
                        jTextField = new JTextField();
                        jTextField.setText("OK");
                        jTextField.setHorizontalAlignment(JTextField.CENTER);
                        jTextField.setEnabled(false);
                        jTextField.setPreferredSize(new Dimension(150, 20));
                }
                return jTextField;
        }

        /**
         * This method initializes jPanel       
         *      
         * @return javax.swing.JPanel   
         */
        private JPanel getJPanel8() {
                if (jPanel == null) {
                        FlowLayout flowLayout2 = new FlowLayout();
                        flowLayout2.setAlignment(java.awt.FlowLayout.CENTER);
                        flowLayout2.setVgap(2);
                        flowLayout2.setHgap(10);
                        jLabel8 = new JLabel();
                        jLabel8.setText("1H BUY");
                        jLabel7 = new JLabel();
                        jLabel7.setText("Price - 21MA Entry");
                        jPanel = new JPanel();
                        jPanel.setLayout(flowLayout2);
                        jPanel.add(jLabel7, null);
                        jPanel.add(jLabel8, null);
                }
                return jPanel;
        }

}